package cn.ac.jaas.ljx.spring.aop;

import java.util.Date;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = 
				new AnnotationConfigApplicationContext(AopConfig.class);
		DemoAnnotationService annotationService = 
				context.getBean(DemoAnnotationService.class);
		DemoMethodService methodService = 
				context.getBean(DemoMethodService.class);
		annotationService.add("abc",new Date());
		//methodService.add();
		//methodService.min();
		context.close();

	}

}
